import React from 'react'
import { Modal } from 'antd'
import VideoDetailBox from '../../video-detail-box'

const VideoPreviewModal = ({isPreviewModalOpen, video, closeModal}) => {
  return <Modal
    title='预览'
    width='50%'
    visible={isPreviewModalOpen}
    destroyOnClose
    onCancel={closeModal}
    footer={null}
  >
    <VideoDetailBox video={video} />
  </Modal>
}

export default VideoPreviewModal
